#set( $symbol_pound = '#' )
#set( $symbol_dollar = '$' )
#set( $symbol_escape = '\' )
package ${package}.device.controller;

import lombok.RequiredArgsConstructor;
import ${package}.base.entity.Result;
import ${package}.device.entity.resp.DeviceResp;
import ${package}.device.service.DeviceAppService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/info")
@RequiredArgsConstructor
public class DeviceInfoController {
    private final DeviceAppService deviceAppService;
    @GetMapping("/queryDevice")
    public Result<DeviceResp> queryDevice(@RequestParam String id, @RequestParam String groupId) {
        return deviceAppService.queryDevice(id, groupId);
    }
}
